package com.gzhryc.net_marketing.cloud.micro.api;

import javax.servlet.http.HttpSession;

import com.gzhryc.common.redis.RedisTools;
import com.gzhryc.shared_device.oem.code.RedisDBConstants;

public class HttpSessionUtils {

    public static boolean setMemberSession(HttpSession session,String loginToken,String content,Integer times){
        return RedisTools.get().set(RedisDBConstants.API_SESSION_DB, loginToken, content, 300L);
    }

    public static String getMemberSession(HttpSession session,String loginToken){
        return RedisTools.get().get(RedisDBConstants.API_SESSION_DB, loginToken);
    }
}
